home *** CD-ROM | disk | FTP | other *** search
- on CheckMovement
- global WhoWhere, WhosHot, MouseMGR, MyPosition
- if the locH of sprite 15 < 0 then
- set the locH of sprite 15 to 0
- end if
- if the locH of sprite 15 > 573 then
- set the locH of sprite 15 to 573
- end if
- if the locH of sprite 15 <> MyPosition then
- if the locH of sprite 15 > 60 then
- set Changeit to the locH of sprite 15 - MyPosition
- set WhoWhere to WhoWhere + (Changeit * -9)
- set WhosHot to SlideRect(WhosHot, Changeit * -9)
- set MyPosition to the locH of sprite 15
- else
- ZeroLists()
- end if
- end if
- end
-
- on SnapTab loc
- global WhoWhere
- set Snapto to [rect(0, 456, 59, 480), rect(59, 456, 118, 480), rect(124, 456, 183, 480), rect(188, 456, 247, 480), rect(252, 456, 311, 480), rect(317, 456, 376, 480), rect(381, 456, 440, 480), rect(445, 456, 504, 480), rect(509, 456, 568, 480), rect(573, 456, 632, 480)]
- if loc = 0 then
- repeat with a = 1 to count(Snapto)
- if inside(point(the mouseH, the mouseV), getAt(Snapto, a)) then
- set the rect of sprite 15 to getAt(Snapto, a)
- gotoSection(a)
- exit
- end if
- end repeat
- else
- set the rect of sprite 15 to getAt(Snapto, loc)
- gotoSection(loc)
- end if
- end
-
- on gotoSection position
- global WhoWhere, WhosHot
- set positionlist to [0, 0, 640, 1280, 1920, 2560, 3200, 3840, 4480, 5120, 5760]
- ZeroLists()
- set WhoWhere to WhoWhere - getAt(positionlist, position)
- set WhosHot to SlideRect(WhosHot, -1 * getAt(positionlist, position))
- end
-
- on DisplayTimeline
- global WhoWhere, WhosHot
- repeat with a = 1 to count(WhoWhere)
- set MyX to getAt(WhoWhere, a)
- set the rect of sprite a to rect(MyX, 0, MyX + 640, 480)
- end repeat
- repeat with a = 1 to count(WhosHot)
- set displayrect to getAt(WhosHot, a) + rect(-1, -1, -1, -1)
- set the rect of sprite (a + 30) to displayrect
- end repeat
- end
-